package cn.edu.fudan.type;



import java.util.ArrayList;
import java.util.List;

/**
 * Created by 80494 on 2017/4/20.
 * this file define the node every time series could be
 */
public class Node {
    //not tested
    public List<Edge> edgeList = null;
    private String  name ="";
    private Integer label = 0;
    
    public Node(Integer label){
        this.label =label;
        if(edgeList==null){
            edgeList = new ArrayList<Edge>();
        }
    }
    public void addEdgeList(Edge edge){
        edgeList.add(edge);
    }

    public void setLabel(Integer label) {
        this.label = label;
    }

    public String getName() {
        return name;
    }

    public List<Edge> getEdgeList() {
        return edgeList;
    }

    public void setEdgeList(List<Edge> edgeList) {
        this.edgeList = edgeList;
    }

    public void setName(String name) {
        this.name = name;
    }


}
